package com.hsxxherp.ation.common.error;


import com.google.common.base.Objects;

import java.io.Serial;
import java.io.Serializable;


public abstract class AtionBaseError implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 错误代码
     */
    protected String errorCode;

    /**
     * 错误消息
     */
    protected String errorMessage;

    // getter
    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    @Override
    public boolean equals(Object object) {
        return Objects.equal(this, object);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(this);
    }
}
